from uuid import uuid4
from fastapi import APIRouter, File, UploadFile, HTTPException

router = APIRouter(prefix="/template", tags=["template"])


@router.get("/")
async def get_templates():
    return {"success": True}


@router.post("/")
async def create_template():
    try:
        return 666

    except Exception as e:
        raise HTTPException(status_code=500, detail=str(e))


@router.delete("/")
async def remove_template():
    return 666


@router.put("/")
async def update_template():
    return 555
